feat: savings goals & milestones tracking#403
Open
TallowX92 wants to merge 1 commit intorohitdash08:mainfrom
Open
feat: savings goals & milestones tracking#403TallowX92 wants to merge 1 commit intorohitdash08:mainfrom
TallowX92 wants to merge 1 commit intorohitdash08:mainfrom
Conversation
Adds full savings goal management with deposit history and computed milestone tracking across backend and frontend. Backend: - SavingsGoal model: name, target, current_amount, currency, deadline, notes, status (ACTIVE/COMPLETED/PAUSED) - SavingsDeposit model: per-goal contribution history - /savings CRUD endpoints (GET, POST, PATCH, DELETE) - POST /savings/:id/deposits — add funds, auto-completes goal at 100% - GET /savings/:id/deposits — deposit history - Milestones computed at 25/50/75/100% of target - Schema SQL + backwards-compatible ALTER statements Frontend: - api/savings.ts — typed API client - pages/Savings.tsx — goal cards, progress bars, milestone badges, deposit dialog, pause/resume, delete - /savings route registered in App.tsx and Navbar
ab5e53a to
19f8a24
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
/claim #133
Demo
Demo-2026-03-14.mp4
Goal creation, deposit tracking, animated progress bar, and 25% milestone badge.
Summary
Full-stack savings goal tracking with deposit history, animated progress bars, and auto-computed milestone badges.
Backend —
/savings/savings/savings/savings/<id>/savings/<id>/savings/<id>/savings/<id>/deposits/savings/<id>/depositsMilestones computed at 25 / 50 / 75 / 100% of
target_amount.Status enum:
ACTIVE→COMPLETED(auto on 100%) |PAUSEDNew models
SavingsGoal— name, target_amount, current_amount, currency, status, deadlineSavingsDeposit— goal_id, amount, note, created_atFrontend
api/savings.ts— fully typed API clientpages/Savings.tsx— animated progress bars, milestone badges (Trophy icon at 25/50/75/100%), deposit dialog, pause/resume toggle, delete with AlertDialog confirmation/savingsroute added toApp.tsxandNavbarTests —
tests/test_savings.py(21 tests, all passing)